import Job from '../job/Job';
import { JobDao, JobModel } from '../models/JobDao';
export default class JobManager {
  private jobDao: JobDao

  init(workspace: string) {
    this.jobDao = new JobDao(workspace)
  }

  save(job: Job) {
    this.jobDao.save(new JobModel(job))
  }

  async find(): Promise<any> {
    return await this.jobDao.find()
  }
}